#!/usr/bin/env python
#-*- coding:utf-8 -*-
import ConfigParser
import os

__dir__         = os.path.dirname(__file__)

config = ConfigParser.ConfigParser()
config.read(os.path.join(__dir__, 'pic-share.cfg'))
mysql = dict(config.items('mysql'))

mysql_port = int(mysql['port'])
mysql_host = mysql['host']
mysql_user = mysql['user']
mysql_password = mysql['password']
mysql_database = mysql['database']
